package entity.innerClass.lianxi.demo02;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Comparator;

import static java.util.Arrays.compare;

public class MainTest {
    public static void main(String[] args) {
        Integer[] arr = {50, 24, 19, 15, 54, 16};
        Arrays.sort(arr, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o1 - o2;
            }
        });
        System.out.println(Arrays.toString(arr));
    }
}
